package Num08_20200304;

import java.util.Scanner;

public class Num08_20200304_hxj {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        int num=0,num1=0,num2=0,temp=0;
        System.out.println("请输入数字：");
        num1=input.nextInt();
        num=num1;
        temp=num1;
        System.out.println("请输入项数:");
        num2=input.nextInt();

        for (int i = 1; i <num2; i++) {
            num=(num*10+num1);
            temp+=num;
        }
        System.out.println(temp);
    }

}
